#pragma once
#include "libEasyPlayerAPI.h"
#pragma comment(lib, "libEasyPlayer.lib")

#include "libMediaCapture.h"
#pragma comment(lib, "libMediaCapture.lib")

#include "libMediaPusher.h"
#pragma comment(lib, "libMediaPusher.lib")


class MediaClientTool
{
public:
	MediaClientTool();
	~MediaClientTool();
public:
	void* m_pPushHandle;
	
	void *m_pCapHandle;
	bool m_bPushState;
	bool m_bPullState;

	MediaCaptureVideoInfo m_vInfo;
	int m_nPlayerChannel;

	unsigned char m_sps[100];
	unsigned char m_pps[100];
	long m_spslen;
	long m_ppslen;

	bool m_bAuto;
	int m_nExposure;

	std::string m_strMac;
public:
	void Init();
	void Destroy();

	bool PushState();
	void PushSet(bool bPush);

	bool PullState();
	void PullSet(bool bPull);
};

